package com.example.demo.bo;

public class Article implements Comparable<Article> {

	String title;
	String mediumUrl;
	Double clapCount;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getMediumUrl() {
		return mediumUrl;
	}
	public void setMediumUrl(String mediumUrl) {
		this.mediumUrl = mediumUrl;
	}
	public Double getClapCount() {
		return clapCount;
	}
	public void setClapCount(Double clapCount) {
		this.clapCount = clapCount;
	}
	@Override
	public int compareTo(Article o) {
		if(this.getClapCount() > o.getClapCount()) {
			return -1;
		} else {
			return 1;
		}
	}
}
